
# 根据测试结果文件名复制对应的标签文件

import os
import shutil

result_dir = 'result_sha/'

source_txt_p = 'E:\\py-projects\\Data-convert\\converter\\kitti_2d_detection\\label_2_ori_modified'

target_txt_p = 'label_2_ori_eval/'

for f_name in os.listdir(result_dir):
    # print(f_name)
    source_txt_path = os.path.join(source_txt_p, f_name)
    target_txt_path = os.path.join(target_txt_p, f_name)
    shutil.copyfile(source_txt_path, target_txt_path)

print('done.')
